/*
 ** header.h for header in /home/dieng_e/zappy-2011/client_graphique/SDl
 **
 ** Made by el-hadji-malick-ndour dieng
 ** Login   <dieng_e@epitech.net>
 **
 ** Started on  Tue Jun 28 15:50:10 2011 el-hadji-malick-ndour dieng
 ** Last update Tue Jun 28 15:50:11 2011 el-hadji-malick-ndour dieng
 */

#ifndef HEADER_H
#define	HEADER_H
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_events.h>

typedef struct {
    int SCREEN_WIDTH;
    int SCREEN_HEIGHT;
    int SCREEN_BPP;
    SDL_Surface *screen;
    SDL_Surface *tmp;
    SDL_Surface *message;
    TTF_Font *font;
    SDL_Color textColor;
    SDL_Event event;
} params;

typedef struct {
    int SHEET_WIDTH;
    int SHEET_HEIGHT;
    SDL_Rect clip[ 4 ];
} _sprites;


int Init_Video(params*);
int Draw_ttf(params *);
int draw_map(params *);
SDL_Surface *Load_Map(char *str);
void Blit_Surface(int x, int y, SDL_Surface *src, SDL_Surface *dest,
        SDL_Rect * clip __attribute__((unused)));
int Update_Map(SDL_Surface * screen);
void Free_SDL_Surfaces(params * var);
void Make_transparency(params *var);
void Sprite_function(_sprites *s_var, params *);
void Loop_map(params *);



#endif	/* HEADER_H */

